Release 10.1A: OpenEdge Development:
Progress 4GL Reference
RAW function
Extracts bytes from a field.
Syntax
fieldAny field from which you want to extract bytes.
positionAn integer expression that indicates the position of the first byte you want to extract from
field. The default value ofpositionis 1.lengthAn integer expression that indicates the number of bytes you want to extract from
Examplefield. If you do not use thelengthargument, RAW usesfieldfrompositionto end.This procedure extracts bytes from the name field of the first customer, starting at byte 8, and writes 4 bytes to the variable r1:
Notes
See also
GET-BYTE function, LENGTH statement, PUT-BYTE statement, RAW statement
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |